import request from '@/utils/request'

enum Api {
  selectLineByRecordId = '/line/selectLineByRecordId', // 根据档案ID查询拓扑连线信息
  insertLine = '/line/insert', // 插入拓扑连线信息
  deleteLine = '/line/delete', // 根据ID删除拓扑连线信息
}

export function selectLineByRecordId(params?: object) {
  return request.get(Api.selectLineByRecordId, params)
}

export const deleteLine = (data?: object) => request.get(`${Api.deleteLine}?id=${data}`)

export const insertLine = (data?: object) => request.post(Api.insertLine, data)
